#pragma once

#include <QWidget>
#include "networkmanager.h"

QT_BEGIN_NAMESPACE
namespace Ui { class PurchaseRecordQueryWindow; }
QT_END_NAMESPACE

class PurchaseRecordQueryWindow : public QWidget
{
    Q_OBJECT

public:
    PurchaseRecordQueryWindow(QWidget *parent = nullptr);
    ~PurchaseRecordQueryWindow();

private slots:
    void on_queryButton_clicked();
    void handleQueryPurchaseRecordResponse(const QJsonObject &response);

private:
    Ui::PurchaseRecordQueryWindow *purchaserecordquerywindowUi;
    NetworkManager *networkManager;
};
